// WorldLog.h: interface for the CWorldLog class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WORLDLOG_H__256B04DC_0834_4764_98E5_97674AB6DA90__INCLUDED_)
#define AFX_WORLDLOG_H__256B04DC_0834_4764_98E5_97674AB6DA90__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "TheorySpace.h"
#include "WSListView.h"

class InfoItem : public CSpace2{

public:
	InfoItem(){
	};
	InfoItem(int64 ID,const char* text);
	virtual ~InfoItem(){};

	virtual void Draw(HDC hDC);
};


class CWorldLog : public CWSListView  
{
	int32             m_MaxItemNum; //default = 200;

public:
	CWorldLog();
	virtual ~CWorldLog();

	InfoItem* AddInfo(const char* text);
	void ClearAllItem();

protected:
	virtual LRESULT Reaction(UINT message, WPARAM wParam, LPARAM lParam);
	LRESULT OnLButtonDown(WPARAM wParam, LPARAM lParam);
	LRESULT OnAddSpace(WPARAM wParam, LPARAM lParam);
	LRESULT OnClearSpace(WPARAM wParam, LPARAM lParam);

};

#endif // !defined(AFX_WORLDLOG_H__256B04DC_0834_4764_98E5_97674AB6DA90__INCLUDED_)
